﻿#ifndef FONTICON_H
#define FONTICON_H

#include <QObject>
#include <QFont>

class FontIcon : public QObject
{
    Q_OBJECT
public:
    explicit FontIcon(QObject *parent = nullptr);

    bool        importFontIcon(const QString &path);// 引入图形字体
    QFont       getFont(int pixelSize = 64);
    QChar       getIconText(int index);
    QString     getIconTip(int index);

signals:

private:
    int         _fontID;
    QStringList _fontNameList;
};

#endif // FONTICON_H
